<template>
  <div class="footer">
    <el-button type="primary" icon="el-icon-search" @click="onSearch">查询</el-button>
    <el-button type="default" icon="el-icon-refresh-left" @click="resetForm">重置</el-button>
    <el-button type="primary" icon="el-icon-plus" @click="addListItem">新建</el-button>
  </div>
</template>

<script>
export default {
  data(){
    return{}
  },
  methods:{
    onSearch(){
      this.$emit('on-search')
    },
    resetForm(){
      this.$emit('reset-form')
    },
    addListItem(){
      this.$emit('add-list-item')
    }
  }
}
</script>

<style lang="scss" scoped>
.footer{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: 200px;
  margin-bottom: 20px;
  .el-button{
    margin-right: 10px;
  }
}
</style>